package com.zero.yygh.hosp.client;

import com.zero.yygh.vo.hosp.ScheduleOrderVo;
import com.zero.yygh.vo.order.SignInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zero
 * @desc Feign接口
 * @create 2021/5/8
 */
@FeignClient("service-hosp")
@Repository
public interface HospitalFeignClient {

    /**
     * 根据排班ID查询预约下单数据
     * @author zero
     * @date 2021/5/8 21:40
     * @param scheduleId 排班id
     * @return 查询结果
     */
    @GetMapping("/api/hosp/hospital/inner/getScheduleOrderVo/{scheduleId}")
    ScheduleOrderVo getScheduleOrderVo(@PathVariable("scheduleId") String scheduleId);

    /**
     * 根据医院编号获取医院签名信息
     * @author zero
     * @date 2021/5/8 21:41
     * @param hoscode 医院编号
     * @return com.zero.yygh.vo.order.SignInfoVo
     */
    @GetMapping("/api/hosp/hospital/inner/getSignInfoVo/{hoscode}")
    SignInfoVo getSignInfoVo(@PathVariable("hoscode") String hoscode);

}
